package user;

import ioperation.*;

import java.util.Scanner;

public class NoimalUser extends User{
    public NoimalUser(String name) {
        super(name);
        this.iOperations = new IOperation[]{
                new ExitbookList(),
                new FindbookList(),
                new BorrowbookList(),
                new ReturnbookList()
        };
    }

    @Override
    public int menu() {
        System.out.println("欢迎"+ this.name + "来到操作页面");
        System.out.println("1.查询图书");
        System.out.println("2.借阅图书");
        System.out.println("3.归还图书");
        System.out.println("0.退出系统");
        Scanner scanner = new Scanner(System.in);
        System.out.println("请选择你想要进行的操作：");
        int choice = scanner.nextInt();
        return choice;
    }
}
